<%@ page import="com.xzkj.xiaozhengblog.artlist" %><%--
  Created by IntelliJ IDEA.
  User: 三星
  Date: 2019/7/18
  Time: 15:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en,zh"><!--页面开始--><!--提高SEO排名百度爬虫技术-->
<head><!--头部开始-->
    <title>小正-博客</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/><!--让浏览器选择最新渲染引擎-->
    <meta charset="UTF-8"/>
    <meta name="Keywords" content="关键字"/>
    <meta name="Description" content="简介或者描述"/>
    <link href="https://cdn.bootcss.com/normalize/8.0.1/normalize.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="css/Default.css"/>
    <script src="js/main.js"></script>
    <script>
        //判断设备是否为手机
        !function () {
            var devices = ["iPhone", "Android", "Windows Phone"]
            var ua = window.navigator.userAgent
            for (var i = 0; i < devices.length; i++) {
                if (ua.indexOf(devices[i]) != -1) {
                    window.location.href = 'findex.jsp'
                }
            }
        }()
    </script>
</head><!--头部结束-->
<body><!--内容开始-->

<div class="top">
    <div class="top-logo" id="logo-ms" onclick="log_oms();" title="点击我可以播放/暂停音乐"></div>
    <div class="top-line"></div>
    <div class="top-line-z"></div>
    <div class="top-left">
        <div class="nav">
            <a href="login/login.jsp" class="item">进入个人中心</a>
            <a href="#" class="item">查看最新动态</a>
            <a href="#" class="item">Minecraft项目</a>
            <a href="#" class="item">JavaWeb项目</a>
            <a href="#" class="item">其他语言项目</a>
            <a href="#" class="item">易语言机器人</a>
            <a href="#" class="item">技术文档</a>
            <a href="#" class="item">学习日记</a>
            <a href="https://github.com/XiaoZhengRS" class="item">GitHub</a>
            <a href="#" class="item">联系我</a>
            <a href="#" class="item">捐助我</a>
            <a href="admin/article.jsp" class="item">关于我</a>
        </div>
    </div>

    <div class="main">
        <div class="art-list">
            <%
                out.println(artlist.getindexartlist());
            %>
        </div>
    </div>

</div>


<audio id="music" autoplay="autoplay" loop>
    <source src="bgm/lldq.mp3" type="audio/mpeg">
</audio>
<script>//自动播放
    var audio = document.getElementById('music');
    audio.play();
</script>
<script>//绑定元素点击播放
    function log_oms() {
        var audio = document.getElementById('music');
        if (audio.paused) {
            audio.play();//audio.play();// 播放
        } else {
            audio.pause();// 暂停
        }
    }
</script>
</body><!--内容结束-->
</html>
<!--页面结束-->
